package com.qiyu.tech.task.future;

/**
 * @Author idea
 * @Date created in 12:27 下午 2020/11/30
 */
public class RealData<T> {

    /**
     * 异步响应数据
     */
    private CallAbleTask<T> callAbleTask;

    private T result;

    public RealData(CallAbleTask<T> callAbleTask) {
        this.callAbleTask = callAbleTask;
        this.result = callAbleTask.run();
    }

    public T getResult(){
        return result;
    }


}
